package chan.project.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 旅行计划表
 * @TableName travel_plan
 */
@TableName(value ="travel_plan")
@Data
public class TravelPlan implements Serializable {
    /**
     * 计划ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 计划需求
     */
    private String planRequirements;

    /**
     * 计划生成路线
     */
    private String generatedRoute;

    /**
     * 计划生成描述
     */
    private String generatedDescription;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 点赞数
     */
    private Integer thumbNum;

    /**
     * 是否删除
     */
    @TableLogic
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}